<?php

include "../init.php";
include DIR_CORE."/MySQLDB.php";
include DIR_CONFIG."/config.php";

// 引入反馈类型配置
$feedback_type = $config['feedback_type'];

session_start();

$user_id = $_SESSION['userInfo']['user_id'];

$sql = "SELECT * FROM feedback WHERE feed_quote_id = $user_id ORDER BY feed_time DESC";
$result = my_query($sql);

$rows = [];
while ($row = mysql_fetch_assoc($result)) {
    $rows[] = $row;
}

// $row = mysql_fetch_assoc($result);

// print_r($row);
// print_r($rows);

// echo "<pre>";
// print_r($_SESSION);
// echo "</pre>";

// var_dump($result);

// if($result) {
//     echo "1";
// } else {
//     echo "0";
// }

include DIR_VIEW.'/list_feedback.html';

?>
